package io.wdb.modules.activity.wx.entity;

import java.util.ArrayList;
import java.util.List;

import com.alibaba.fastjson.JSONObject;

public class QueryUserResponse {
	private String total;
	private String count;
	private OpenData data;
	private String next_openid;
	public String getTotal() {
		return total;
	}
	public void setTotal(String total) {
		this.total = total;
	}
	public String getCount() {
		return count;
	}
	public void setCount(String count) {
		this.count = count;
	}
	public OpenData getData() {
		return data;
	}
	public void setData(OpenData data) {
		this.data = data;
	}
	public String getNext_openid() {
		return next_openid;
	}
	public void setNext_openid(String next_openid) {
		this.next_openid = next_openid;
	}
	public class OpenData{
		private List<String> openid;

		public List<String> getOpenid() {
			return openid;
		}

		public void setOpenid(List<String> openid) {
			this.openid = openid;
		}
	}
	public static void main(String[] args) {
		QueryUserResponse queryUserResponse = new QueryUserResponse();
		queryUserResponse.setCount("1");
		queryUserResponse.setNext_openid("om7kW04TsCq12BC75cH67WCVzg0o");
		queryUserResponse.setTotal("1");
		OpenData data = queryUserResponse.new OpenData();
		List<String> list = new ArrayList<String>();
		list.add("om7kW04TsCq12BC75cH67WCVzg0o");
		data.setOpenid(list);
		queryUserResponse.setData(data);
		String s = JSONObject.toJSONString(queryUserResponse);
		System.out.println(s);
		QueryUserResponse queryUserResponse2 =  JSONObject.parseObject(s, QueryUserResponse.class);
		System.out.println(queryUserResponse2);
	}
}
